{##
 # Contains macros for creating tables.
 #
 # @copyright  Copyright (c) 2010-2011 The Fajr authors (see AUTHORS).
 #             Use of this source code is governed by a MIT license that can be
 #             found in the LICENSE file in the project root directory.
 # @author     TODO
 #}

{##
 # TODO: document
 #}
{% macro column(title, class) %}
  {% if not class %}
    {% set class='' %}
  {% endif %}
  <th class="{{ class }}">{{ title }}</th>
{% endmacro %}

{##
 # TODO: document
 #}
{% macro row(class, selected) %}
  {% if not class %}{% set class="" %}{% endif %}
  {% if selected %}{% set class %}{{ class }} selected{% endset %}{% endif %}
  <tr {% if class %}class="{{ class }}"{% endif %}>
{% endmacro %}

{##
 # TODO: document
 #}
{% macro endrow() %}
  </tr>
{% endmacro %}
